package com.moneywelcome.userserviceassembly.param;

import io.swagger.annotations.ApiModel;
import jdk.nashorn.internal.runtime.regexp.joni.Regex;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@Validated
@ApiModel("注册的参数列表")
public class PhoneRegisterParam {
    @NotBlank
    @Pattern(message = "请输入正确的手机号",regexp ="^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\\\\d{8}$")
    private String userPhone;
    @NotBlank
    private Integer userCode;
    @NotBlank
    private String password;
}